#ifndef ADDDOC_H
#define ADDDOC_H

#include <QDialog>
#include <sqlconn.h>
#include <QButtonGroup>

namespace Ui {
class AddDoc;
}

class AddDoc : public QDialog
{
    Q_OBJECT

public:
    explicit AddDoc(QWidget *parent = nullptr);
    ~AddDoc();
    void setSQL(SQLConn*&);


private slots:
    void on_bt_confirm_clicked();

    void on_bt_cancel_clicked();

private:
    Ui::AddDoc *ui;
    SQLConn* sql;
    QString m_name;
    int m_age;
    QString m_sex;
    float m_work_age;
    QString m_major;
    int m_attendence;
    int m_status;
    QString m_phone;
    QButtonGroup *sexBtn;
    QButtonGroup *attBtn;
    QButtonGroup *freeBtn;
};

#endif // ADDDOC_H
